import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

// 2.创建axios自定义实例
const instance = axios.create({
  baseURL: 'http://toutiao.itheima.net',
  timeout: 10000
})
// 3导出模块
export default instance
Vue.use(VueAxios, axios)
